package com.java.remoteInterface;

import com.alibaba.fastjson.JSONObject;
import com.java.dto.ResultMsg;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;

@FeignClient(name = "microservice-bank1")
public interface Bank1Service {

    @PostMapping("/transfer/tryTransfer")
    ResultMsg tryTransfer(JSONObject jsonObject);

    @PostMapping("/transfer/confirmTransfer")
    ResultMsg confirmTransfer(JSONObject jsonObject);

    @PostMapping("/transfer/cancelTransfer")
    ResultMsg cancelTransfer(JSONObject jsonObject);


}
